Component({
    properties: {},
    data: {
        // 默认不隐藏
        isHiddenMain: false,
        isHiddenDrawer: true,
        isHiddenMask: true
    },
    methods: {
        toggleDrawer() {
            this.setData({
                isHiddenDrawer: !this.data.isHiddenDrawer,
                isHiddenMask: !this.data.isHiddenMask
            })
        },

        clickMask() {
            this.setData({
                isHiddenDrawer: !this.data.isHiddenDrawer,
                isHiddenMask: !this.data.isHiddenMask
            })
        }
    }
});

